package org.example.ch06.filter;

import jakarta.servlet.*;
import jakarta.servlet.annotation.WebFilter;
import lombok.extern.slf4j.Slf4j;
import java.io.IOException;

/**
 * @ClassName MyFilter
 * @Description TODO
 * @Author Kx
 * @Date 2025/9/14 19:21
 * @Version 1.0
 */
@WebFilter(urlPatterns = "/*")
@Slf4j
public class MyFilter implements Filter {
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
      log.info("经过MyFilter...");
      filterChain.doFilter(servletRequest,servletResponse);
    }
}
